//
//  ShenHeZhongViewController.m
//  FactorySale
//
//  Created by 李 on 2020/1/15.
//  Copyright © 2020 主事丫环. All rights reserved.
//

#import "ShenHeZhongViewController.h"

@interface ShenHeZhongViewController ()

@end

@implementation ShenHeZhongViewController
- (void)viewWillAppear:(BOOL)animated {

    [super viewWillAppear:animated];
    [self.navigationController setNavigationBarHidden:YES animated:animated];

}

- (void)viewWillDisappear:(BOOL)animated {
    [super viewWillDisappear:animated];
    [self.navigationController setNavigationBarHidden:NO animated:animated];
}
- (void)viewDidLoad {
    [super viewDidLoad];
     self.view.backgroundColor = [UIColor whiteColor];
    [self configViews];
}
-(void)configViews
{
    UIImageView *backImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, ScreenW, 265)];
    backImageView.image = [UIImage imageNamed:@"审核中"];
    [self.view addSubview:backImageView];
    
     UIButton *leftbutton = [[UIButton alloc] initWithFrame:CGRectMake(20, 35, 30, 30)];
          leftbutton.titleLabel.font = [UIFont systemFontOfSize:14];
          [leftbutton setContentEdgeInsets:UIEdgeInsetsMake(0, -10, 0, 0)];
          [leftbutton setImage:imgname(@"leftWhiteBtn") forState:(UIControlStateNormal)];
          [leftbutton setTitleColor:KTEXTCOLOR forState:UIControlStateNormal];
          [leftbutton addTarget:self action:@selector(leftBtnClick) forControlEvents:UIControlEventTouchUpInside];
         [self.view addSubview:leftbutton];
    
    UILabel *titlelab = [[UILabel alloc]initWithFrame:CGRectMake((ScreenW-100)/2, 40, 100, 15)];
    titlelab.font = FontSize(15);
    titlelab.textColor = [UIColor colorWithHexString:@"#FFFFFF"];
    titlelab.text = @"审核结果";
    titlelab.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titlelab];
    
  
    
    //厂家名称
    UILabel *stateLab = [[UILabel alloc]init];
    stateLab.font = KFontPingFangSCMedium(16);
    stateLab.textColor = [UIColor colorWithHexString:@"#333333"];
    stateLab.text = @"提交成功，请等待管理员审核！";
    stateLab.numberOfLines = 0;
    stateLab.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:stateLab];
    [stateLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(backImageView.mas_bottom).mas_offset(20);
        make.left.equalTo(self.view.mas_left).mas_offset(15);
        make.right.equalTo(self.view.mas_right).mas_offset(-15);
        make.width.mas_greaterThanOrEqualTo(56);
        make.height.mas_greaterThanOrEqualTo(16);
    }];

   
    
  
    
   
}
-(void)leftBtnClick
{
    [self.navigationController popToRootViewControllerAnimated:YES];
}
@end
